<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/login', 'UserController@login');
Route::get('/logout', 'UserController@logout');
Route::post('/verify', 'UserController@verify');
Route::get('/uptoken', 'FileController@uptoken');

Route::get('/', 'ArchiveController@index');
Route::get('/archive', 'ArchiveController@index');
Route::get('/archive/create', 'ArchiveController@create');
Route::post('/archive/edit', 'ArchiveController@update');
Route::post('/archive', 'ArchiveController@store');
Route::get('/archive/edit/{id}', 'ArchiveController@edit');
Route::get('/archive/delete/{id}', 'ArchiveController@delete');
Route::get('/archive/{id}', 'ArchiveController@show');

Route::get('/category', 'CategoryController@index');
Route::get('/category/create', 'CategoryController@create');
Route::post('/category/edit', 'CategoryController@update');
Route::post('/category', 'CategoryController@store');
Route::get('/category/edit/{id}', 'CategoryController@edit');
Route::get('/category/delete/{id}', 'CategoryController@delete');
Route::get('/category/{id}', 'CategoryController@show');


